source "$ANALYSISPATH/createplotvars.sh"

gnuplot <<EOF
set terminal postscript eps size 3.5,2.62 enhanced color font 'Helvetica,10'
set output '$RESULTSPATH/fig_hdctests_timetaken_medianmean.eps'
# set yrange [:100000]
set ytics nomirror
set y2tics
set log y
ddfile="$DDFILE_HDC"
fsfile="$FSFILE_HDC"
dbfile="$DBFILE_HDC"
set pointsize 0.2
# If you want a second y axis, edit using this example:
#  "plot datafile using :1 axes x1y2 title 'Y2 Example'"
plot dbfile using :1 title 'DB Time Taken' with points, \
     dbfile using :2 title 'DB Time Taken Moving Median' with lines linetype 1 linecolor 2,\
     fsfile using :2 title 'FS Time Taken Moving Median' with lines linetype 1 linecolor 3,\
     ddfile using :2 title 'DD Time Taken Moving Median' with lines linetype 1 linecolor 4,\
     dbfile using :3 title 'DB Time Taken Moving Mean' with lines linetype 2 linecolor 5,\
     fsfile using :3 title 'FS Time Taken Moving Mean' with lines linetype 2 linecolor 6,\
     ddfile using :3 title 'DD Time Taken Moving Mean' with lines linetype 2 linecolor 7
EOF

